using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using System.ComponentModel;
using Zsa.Emulation.Render;

namespace Zsa.Emulation
{
    /// <summary>
    /// Base class for host form.
    /// </summary>
    public class HostForm : Form
    {
        #region Fields
        /// <summary>
        /// The device host.
        /// </summary>
        private IMachineHost _Host;

        #endregion Fields

        #region Constructors
        /// <summary>
        /// Initializes a new instance of the <see cref="HostForm"/> class.
        /// </summary>
        public HostForm()
        {
        }
        #endregion Constructors

        #region Properties
        /// <summary>
        /// Gets the nes host.
        /// </summary>
        /// <value>The nes host.</value>
        [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
        public IMachineHost NesHost
        {
            get
            {
                return _Host;
            }
        }
        /// <summary>
        /// Gets or sets the host.
        /// </summary>
        /// <value>The host.</value>
        [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
        internal IMachineHost InternalHost
        {
            get
            {
                return _Host;
            }
            set
            {
                _Host = value;
            }
        }
        #endregion Properties

    }

}
